
pkgname=wireless_tools
pkgver=29.9
_pkgver=30
pkgrel=3
pkgdesc="Wireless Tools"
arch=('x86_64')
url="https://hewlettpackard.github.io/wireless-tools/Tools.html"
license=('GPL')
depends=('glibc')
source=("https://hewlettpackard.github.io/wireless-tools/wireless_tools.30.pre9.tar.gz")
md5sums=('ca91ba7c7eff9bfff6926b1a34a4697d')

build() {
  cd ${pkgname}.${_pkgver}
  sed '/BUILD_STATIC =/d' -i Makefile

  make
}

package() {
  cd ${pkgname}.${_pkgver}
  
  make INSTALL_DIR="${pkgdir}/usr/sbin" \
    INSTALL_LIB="${pkgdir}/usr/lib" \
    INSTALL_INC="${pkgdir}/usr/include" \
    INSTALL_MAN="${pkgdir}/usr/share/man" \
  install
}
